/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2013 All Rights Reserved.
 */
package com.pingan.mobilegw.core.model.request;

import com.pingan.mobilegw.core.model.enums.BatchTypeEnum;

import java.util.List;

/**
 * 多请求体
 * 
 * @author jiadao
 * @version $Id: BatchRequestBody.java, v 0.1 2013-4-14 下午2:34:49 jiadao Exp $
 */
public class BatchRequestBody implements RequestBody {

    /** 多个请求体 */
    private List<SingleRequestBody> requestBodies;

    /** 并行请求类型 */
    private BatchTypeEnum           batchType;

    /**
     * 默认构造函数
     */
    public BatchRequestBody() {
        super();
    }

    /**
     * @param requestBodies
     */
    public BatchRequestBody(List<SingleRequestBody> requestBodies, BatchTypeEnum batchType) {
        super();
        this.requestBodies = requestBodies;
        this.batchType = batchType;
    }

    /**
     * Getter method for property <tt>requestBodies</tt>.
     * 
     * @return property value of requestBodies
     */
    public List<SingleRequestBody> getRequestBodies() {
        return requestBodies;
    }

    /**
     * Setter method for property <tt>requestBodies</tt>.
     * 
     * @param requestBodies value to be assigned to property requestBodies
     */
    public void setRequestBodies(List<SingleRequestBody> requestBodies) {
        this.requestBodies = requestBodies;
    }

    /**
     * Getter method for property <tt>batchType</tt>.
     * 
     * @return property value of batchType
     */
    public BatchTypeEnum getBatchType() {
        return batchType;
    }

    /**
     * Setter method for property <tt>batchType</tt>.
     * 
     * @param batchType value to be assigned to property batchType
     */
    public void setBatchType(BatchTypeEnum batchType) {
        this.batchType = batchType;
    }

}
